//
//  ScrollableController.m
//  SmallElephant
//
//  Created by Faith on 2024/11/11.
//

#import "ScrollableController.h"


@interface ScrollableController ()

@end

@implementation ScrollableController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    _scrollView = [[UIScrollView alloc] init];
    _scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    [self.view addSubview:_scrollView style:@"display: flex; flex: 1;"];
    
    _scrollViewContent = [[ScrollableContentView alloc] init];
    [_scrollView addSubview:_scrollViewContent style:@"display: flex; flex: 1; flex-direction: column;"];
}

- (void)loadData {
    NSLog(@"基类默认加载数据方法, 请覆盖");
}

//- (void)viewWillLayoutSubviews {
//    [super viewWillLayoutSubviews];
//}

@end
